package com.doctcloud.hisinfo.inpadm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doctcloud.common.core.domain.R;
import com.doctcloud.hisinfo.histable.domain.inpadm.PatsInHospitalDo;
import com.doctcloud.hisinfo.inpadm.mapper.PatsInHospitalDoMapper;
import com.doctcloud.hisinfo.inpadm.service.IPatsInHospitalService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatsInHospitalService extends ServiceImpl<PatsInHospitalDoMapper, PatsInHospitalDo> implements IPatsInHospitalService {
    @Override
    public R<List<PatsInHospitalDo>> listAll() {
        LambdaQueryWrapper<PatsInHospitalDo> query = Wrappers.lambdaQuery();
        return R.ok(baseMapper.selectList(query));
    }
}
